﻿$("#exampleAccordion>li:nth-child(4) a").removeClass("collapsed");
$("#exampleAccordion>li:nth-child(4) ul").addClass("show");
$("#exampleAccordion>li:nth-child(4) ul>li:nth-child(2)").addClass("active");
function submit() {
    if ($("#title").val() == undefined || $("#title").val() == "") {
        layer.msg("标题不能为空")
        return false;
    }
    if ($("#content").val() == undefined || $("#content").val() == "") {
        layer.msg("内容不能为空")
        return false;
    }
        var option = {
            type: 'post',
            url: '/Notice/Add',
            data: { title: $("#title").val(), content: $("#content").val()},
            callback: SetMode
        }
        swGather.swAjax(option)
}
//ajax回调
function SetMode(data) {
    layer.msg(data.Msg);
}